<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>App Log</title>
<!-- 
<link rel="stylesheet" href="http://127.0.0.1/static/css/cc.css" type="text/css"/> -->
<script>
function change(obj){
	window.location.href = "<?php echo CRouter::url(array('controller'=>'Page', 'action'=>'applog')); ?>" + '?date=' + obj.value;
}
</script>
</head>
<body>
<div>
<?php echo CRouter::url(array('controller'=>'Page', 'action'=>'applog', 'query'=>array('a'=>'a', 'b'=>'b'))); ?>
</div>
<select onchange="change(this)">
	<?php foreach($logs as $log): ?>
	<option name="date" value="<?php echo $log;?>" <?php if($log == $log2show) echo 'selected'; ?> ><?php echo $log;?></option>
	<?php endforeach;?>
</select>
<br/>
<div class="content">
	<?php echo $content;?>
</div>

</body>
</html>